<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CraeteRechargePackageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('recharge_package', function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('name')->nullable()->comment('套餐名称');
            $table->decimal('amount_money',11,2)->default(0)->comment('套餐金额');
            $table->integer('books_coin')->default(0)->comment('阅读币数量');
            $table->integer('gift_books_coin')->default(0)->comment('赠送的阅读币数量');
            $table->string('remark')->nullable()->comment('备注');
            $table->tinyInteger('status')->default(0)->comment('状态 0：下架 1：上架');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
